package com.qfedu.qfoffice.service.impl;

import com.qfedu.qfoffice.dao.StudentDao;
import com.qfedu.qfoffice.entity.Grade;
import com.qfedu.qfoffice.entity.Student;
import com.qfedu.qfoffice.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;


    @Override
    public List<Grade> selectGrade() {
        return studentDao.selectGrade();
    }

    @Override
    public int insertStudent(Student student) {
        return studentDao.insertStudent(student);
    }
}

